package com.by.springboottwodatabases.service;

import com.by.springboottwodatabases.controller.request.OneRequestBean;
import com.by.springboottwodatabases.controller.request.TestRequestBean;
import com.by.springboottwodatabases.domain.one.DOne;
import com.by.springboottwodatabases.domain.one.DTestOne;

public interface OneService {

    DOne createOne(OneRequestBean bean);

    DOne findById(Long id);

    DOne updateOne(Long id, OneRequestBean bean);

    void deleteOne(Long id);

    DTestOne createTest(TestRequestBean bean);

    DTestOne findTestById(Long id);

    DTestOne updateTest(Long id, TestRequestBean bean);

    void deleteTest(Long id);

}
